<?php if ($gtAccount != NULL): ?>
<div class='grid_12 alpha omega'>

<!-- prepopulate fields with data received from the controller -->
<?php
echo $this->Form->create('Request');
echo $this->Form->input('employee_id', array(
        'label' => 'Employee ID',
        'type' => 'text',
        'default' => $replaceHour['employee_id'],
        'readonly' => 'readonly'
    ));
echo $this->Form->input('clock_in', array(
        'label' => 'Clock In/Out',
        'type' => 'radio',
        'options' => array('Clock Out', 'Clock In'),
        'default' => $replaceHour['clock_in'],
    ));

echo $this->Form->input('replaces', array(
        'label' => 'Replaces Entry',
        'type' => 'text',
        'default' => $replaceHour['trans_id'],
        'readonly' => 'readonly'
    ));

$projectOptions = array();
foreach($projects as $project):
    $projectOptions[$project['project_id']] =  $project['description'];
endforeach;

echo $this->Form->input('proj_id',array(
        'label' => 'Project',
        'type' => 'select',
        'options' => $projectOptions
    ));

echo $this->Form->input('datetime',array(
        'label' => 'Datetime',
        'type' => 'text',
        'default' => $replaceHour['date'],
    ));

echo $this->Form->input('comment',array(
        'label' => 'Comment',
        'type' => 'text'
    ));

echo $this->Form->end('Make Request');
?>
</div>
<?php else: ?>
<h1> Invalid Login </h1>
<?php endif?>
